<?php

/**
 * portal module configuration.
 *
 * @package    ems1
 * @subpackage portal
 * @author     Jacobo Martínez
 * @version    SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class portalGeneratorConfiguration extends BasePortalGeneratorConfiguration
{
    public function getTableMethod()
    {
        $user = sfContext::getInstance()->getUser();
        if($user->hasCredential('Administrador de sistema')){
            return '';
        } else {
            return 'addPortalsThatCanBeAccessedByUserQuery';
        }
    }

}
